import request from '@/utils/request'

//教师提交材料历史总表
export function adminHistoryAll(page,limit) {
  return request({
    url: `/admservice/adm-superadministrator/adminHistoryAll/${page}/${limit}`,
    method: 'get'
  })
}

//审核专家提交材料批阅
export function materialReview(page,limit,historyQuery) {
  return request({
    url: `/admservice/adm-superadministrator/materialReview/${page}/${limit}`,
    method: 'post',
    data:historyQuery
  })
}

//审核专家提交材料打回未通过
export function outReview(id,reason) {
  return request({
    url: `/admservice/adm-superadministrator/outReview/${id}/${reason}`,
    method: 'post'
  })
}
//审核专家提交材料通过
export function okReview(id) {
  return request({
    url: `/admservice/adm-superadministrator/okReview/${id}`,
    method: 'post'
  })
}
//超级管理员的申报材料查询
export function materialReviewApp(page,limit,historyQuery) {
  return request({
    url: `/admservice/adm-superadministrator/materialReviewApp/${page}/${limit}`,
    method: 'post',
    data:historyQuery
  })
}
//超级管理员对申报类别打回未
export function outReviewApp(id,reason) {
  return request({
    url: `/admservice/adm-superadministrator/outReviewApp/${id}/${reason}`,
    method: 'post'
  })
}

//审核专家项目申报通过
export function okReviewApp(id,okReason) {
  return request({
    url: `/admservice/adm-superadministrator/okReviewApp/${id}/${okReason}`,
    method: 'post'
  })
}
//超级管理员总评表查询
export function madeGenApp(page,limit,historyQuery) {
  return request({
    url: `/admservice/adm-superadministrator/madeGenApp/${page}/${limit}`,
    method: 'post',
    data:historyQuery
  })
}
//管理员生成总评
export function okmadeGenApp(id) {
  return request({
    url: `/admservice/adm-superadministrator/okmadeGenApp/${id}`,
    method: 'post'
  })
}
//管理员生成总评
export function getGen() {
  return request({
    url: `/admservice/adm-superadministrator/getGen`,
    method: 'get'
  })
}
